/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.iecg.api.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.index.Indexed;

import java.util.Date;

/**
 *
 *
 * @author zjc
 * @date 2019-09-05 11:13:10
 */
@Data
public class IecgCheckData {

    /**
     * 编号
     */
	@Id
    private String id;
	/**
	 * 用户ID
	 */
	@Indexed
	@ApiModelProperty(value="用户id")
	private Long userId;
	/**
	 * 本次检测ID
	 */
	@ApiModelProperty(value="本次检测业务号")
	private String bizId;
	/**
	 * 心电检测数据
	 */
	@ApiModelProperty(value="ecg心电数据")
	private String ecgData;
	/**
	 * 缓存单次心电数据
	 */
	@ApiModelProperty(value="缓存单次心电数据")
	private String tmpEcgData;
	/**
	 * 数据计次
	 */
	@ApiModelProperty(value="数据计次")
	private Byte count;
	/**
	 * 波形采样率
	 */
	@ApiModelProperty(value="波形采样率")
	private Integer samplingRate;
	/**
	 * 波形走速
	 */
	@ApiModelProperty(value="波形走速")
	private Integer  velocity;
	/**
	 * 增益
	 */
	@ApiModelProperty(value="增益")
	private Integer gain;
	/**
	 * 导联类型
	 */
	@ApiModelProperty(value="导联类型(i,ii,iii,avr,avl,avf,v1,v2,v3,v4,v5,v6)")
	private String leadType;
	/**
	 * 开始时间
	 */
	@ApiModelProperty(value="开始时间")
	private Long startTime;
	/**
	 * 结束时间
	 */
	@ApiModelProperty(value="结束时间")
	private Long endTime;
	/**
	 * 间隔时间
	 */
	@ApiModelProperty(value="间隔时间")
	private Integer interval;
	/**
	 * 零值
	 */
	@ApiModelProperty(value="零值")
	private Integer zeroValue;
	/**
	 * 传输模式
	 */
	@ApiModelProperty(value="传输模式(静态:1,动态:2)")
	private Integer mode;
	/**
	 * 异常点
	 */
	@ApiModelProperty(value="异常点")
	private String outliers;
	/**
	 * 创建时间
	 */
	@CreatedDate
	@ApiModelProperty(hidden=true)
	private Date createDate;
	/**
	 * 更新时间
	 */
	@LastModifiedDate
	@ApiModelProperty(hidden=true)
	private Date lastModifiedDate;

}
